-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TLS support for diesel-async database connections #3189
Conversation
I have significantly reduced the scope of this PR: it only aims to provide support for No new configuration parameters are needed anymore, After discussions with some other admins, I realized that |
I see what you did here 👀 |
Update docs to reflect changes from LemmyNet/lemmy#3189
This PR adds a new
tls_enabled
configuration option in thedatabase
block of lemmy.hsjon. When configured totrue
, Lemmy will create SSL connections to the postgres database through diesel-async.By default, the database certificate will be verified using the OS certificate store (thanks to rustls-native-certs), but users can also provide a path to a CA certificate file directly using the
LEMMY_DATABASE_CERT_PATH
env variable if necessary.Note, by default
tls_enabled
will befalse
, so using SSL connections will be entirely opt-in.This fixes #3007